<%@page pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%@include file="/WEB-INF/jsp/common/common.jsp" %>
    <script>
	function submitForm(){
		$.messager.progress();
		$('#btForm').form('submit', {
	        onSubmit: function(){
	        	return true;
	        },
	        success : function( data ) {
	        	$.messager.progress('close');	
	        	var r = eval('(' + data + ')');
	        	if ( r.success ) {
					$.messager.alert('系统提示信息', "故障单信息保存成功",'info', function(){
						//$('#dataTable').datagrid('reload');
						window.location.href = "${APP_PATH}/bt/index.do";
					});
	        	} else {
	        		$.messager.alert('系统提示信息', "故障单信息保存失败",'error');
	        	}
	        }
		});
	}    
    $(function(){

    })
    </script>
</head>

<body>
<form id="btForm" action="${APP_PATH}/bt/insert.do" method="post">
<table  border="0" cellpadding="0" cellspacing="0" class="table_border">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_right">
      <tr>
        <td width="25" height="26" align="right"><img src="../images/ico_location.gif" width="16" height="15" /></td>
        <td><strong>位置：</strong>首页&gt;故障管理&gt;故障单维护&gt;新建故障单</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" class="table_padding">
      <tr>
        <td align="center"><table border="0" cellpadding="0" cellspacing="0" class="box_table" id="box_table2">
          <thead>
            <tr>
              <td class="box_table_even">故障级别：</td>
              <td class="box_table_odd">
                   <select class="easyui-combobox" required name="level">
                       <option value="">-请选择-</option>
                       <option value="0">A</option>
                       <option value="1">B</option>
                       <option value="2">C</option>
                   </select>
              </td>
            </tr>
            <tr>
              <td class="box_table_even">故障局点：</td>
              <td class="box_table_odd"><select name="address" required class="easyui-combobox">
                <option>--请选择--</option>
                <option value="0">白云分局</option>
                <option value="1">花都分局</option>
                <option value="2">芳村分局</option>
                </select></td>
            </tr>
            <tr>
              <td class="box_table_even">故障描述：</td>
              <td class="box_table_odd"><span class="in">
                <textarea name="remark"  style="width:95%" cols="100" rows="5"></textarea>
                <span class="star"> *</span></span></td>
            </tr>
            <tr>
              <td class="box_table_even">故障发生时间：</td>
              <td class="box_table_odd"><input class="easyui-datetimebox" name="happentime" required style="width:200px"></td>
            </tr>
          </thead>
          <tbody>
          </tbody>
        </table>
          <table border="0" cellpadding="0" cellspacing="0" class="operation" >
<thead>
		  		      <tr>
		  		        <td>
	    <div style="text-align:center;padding:5px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">保存</a>
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">返回</a>
	    </div>
		  		        </td>
	  		          </tr>
  		        </thead>
		  		    <tbody id="tInfo2">
	  		        </tbody>
	        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
</html>
